<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    let game = {

    }

    //声明一个对象
    let methods = {
        up:Symbol(),
        down:Symbol(),
    }

    game[methods.up] = function () {
        //往对象上增加一个方法 不破坏原来的方法和属性 因为值唯一
    }

    game[methods.down] = function () {

    }

    let youxi  ={
        name:'狼人杀',
        [Symbol('say')]:function f() {
            //内容
        }
    }
    console.log(youxi) // xxx , Symbol('say')


</script>
</body>
</html>